import { API } from "@/config"
import requewt from "@/utils/requewt"

export const useBurialPoint = () => {
    /**
     * 
     * @param {
     * source: 渠道信息
     * category: 位置记录， 默认是home_page
     * } params 
     * @returns 
     */
    const pageRecord = (params) => {
        return requewt(API.car.carRecord, {method:'POST',body: params,headers: {"Content-Type": "multipart/form-data"}})
    }
    const submitDrive = (params) => {
        return requewt(API.car.carDrive,{method:'POST',body:params,headers: {"Content-Type": "multipart/form-data"}})
    }
    return {
        pageRecord,
        submitDrive
    }
}